<template>
   <el-table
       :data="formTable"
       style="width: 100%">
       <el-table-column
           prop="name"
           label="名字"
           width="width">
       </el-table-column>
        <el-table-column
           prop="relation"
           label="国籍"
           width="width">
       </el-table-column>
        <el-table-column
           prop="age"
           label="年龄"
           width="width">
       </el-table-column>
   </el-table>
</template>
<script>
export default {
    data(){
        return {
            infos:{
                name:"suiyi",
                age:11,
                job:"worker"
            },
            formTable:[
                {
                name:"张三",
                age:"11",
                relation:"中国"
                },
                {
                name:"小李子",
                age:"22",
                relation:"德国"
                },
                {
                name:"老爷子",
                age:"121",
                relation:"美国"
                }, 
                {
                name:"小明",
                age:"41",
                relation:"日本"
                }
            ]
        }
    },
    methods:{
        filtData(){
            var users = {
            'fred':    { 'user': 'fred',    'age': 40 },
            'pebbles': { 'user': 'pebbles', 'age': 1 }
        };
        var c1 = _.mapValues(users,'age')  //{ fred: 40, pebbles: 1 }
        console.log(c1)
        }
        
    },
    mounted(){
        this.filtData();
    }
}
</script>